﻿using MiniErp.Entity.DataStreams.DOs.AssetManagement;
using MiniErp.Repository.BaseRepository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Repository.MysqlRepository.IRepository.AssetManagement
{
    /// <summary>
    /// 资产信息仓储接口
    /// </summary>
    public interface IAssetInfoRepository : IBaseRepository<AssetInfo>
    {

        /// <summary>
        /// 查询指定类别资产条数
        /// </summary>
        /// <param name="gid"></param>
        /// <param name="sid"></param>
        /// <returns></returns>
        Task<int?> GetMaxAssetInfoAIdAsync(int gid, int sid);
        /// <summary>               
        /// 模糊查询符合条件的数据  //分页
        /// </summary>
        /// <param name="value">模糊查询值</param>
        /// <param name="Page">页码</param>
        /// <param name="num">每页条数</param>
        /// <returns></returns>
        Task<List<AssetInfo>> GetFuzzyAssetInfoAsync(string value, int Page, int num);

    }
}
